<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>搜索框</title>
    <style>
        .search {
            display: flex;
            align-items: center;
            width: 1266px;
            height: 50px;
            margin: 0 auto;
        }

        .search-input {
            line-height: 50px;
            width: 500px;
            height: 44px;
            font-size: 12px;
            color: gray;
        }

        .search-icon {
            display: inline-block;
            width: 50px;
            height: 50px;
            background-image: url(../images/icons8-搜索.gif);
            background-repeat: no-repeat;
            background-size: 50px 50px;
            background-color: gold;
            margin-left: 5px;
        }
    </style>
</head>

<body>
    <div class="search">
        <input type="text" class="search-input" placeholder="请输入.....">
        <dev class="search-icon"></dev>
    </div>
</body>

</html>